package com.zhong.mygitnewsapp;

import android.app.Application;

import cn.jpush.android.api.JPushInterface;

/**
 * Created by 俊峰 on 2016/10/24.
 */
public class MainApplication extends Application {
    @Override
    public void onCreate() {
        super.onCreate();

        //初始化极光推送
        if (BuildConfig.DEBUG) {
            JPushInterface.setDebugMode(true); //设置是否是调试模式
        }
        JPushInterface.init(this);  //初始化推送
    }
}
